package com.ruoyi.project.remake.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 借阅审批对象 t_borrow_approval
 * 
 * @author 孙山伟
 * @date 2020-12-23
 */
public class TBorrowApproval extends BaseEntity
{
     private static final long serialVersionUID = 1L;

    /** 审批状态 0代表通过，1代表不通过 */
    @Excel(name = "审批状态 0代表通过，1代表不通过")
    private String approvalStatus;

    /** 审批人 */
    @Excel(name = "审批人")
    private String approvalBy;

    /** 审批时间 */
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approvalTime;

    /** 借阅结束时间 */
    @Excel(name = "借阅结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date borrowEndTime;

    /** 借阅开始时间 */
    @Excel(name = "借阅开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date borrowStartTime;

    /** 借阅目的 */
    @Excel(name = "借阅目的")
    private String borrowObjective;

    /** 申请时间 */
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;

    /** 申请医生 */
    @Excel(name = "申请医生")
    private String applyDoctor;

    /** 病例分类 */
    @Excel(name = "病例分类")
    private String classType;

    /** 病历号 */
    @Excel(name = "病历号")
    private String cardNumber;

    /** 住院号 */
    private Long id;

    private  Long classMainId;

    private  String applyDoctorName;

    private  String refuse;

    public void setApprovalStatus(String approvalStatus) 
    {
        this.approvalStatus = approvalStatus;
    }

    public String getApprovalStatus() 
    {
        return approvalStatus;
    }
    public void setApprovalBy(String approvalBy) 
    {
        this.approvalBy = approvalBy;
    }

    public String getApprovalBy() 
    {
        return approvalBy;
    }
    public void setApprovalTime(Date approvalTime) 
    {
        this.approvalTime = approvalTime;
    }

    public Date getApprovalTime() 
    {
        return approvalTime;
    }
    public void setBorrowEndTime(Date borrowEndTime) 
    {
        this.borrowEndTime = borrowEndTime;
    }

    public Date getBorrowEndTime() 
    {
        return borrowEndTime;
    }
    public void setBorrowStartTime(Date borrowStartTime) 
    {
        this.borrowStartTime = borrowStartTime;
    }

    public Date getBorrowStartTime() 
    {
        return borrowStartTime;
    }
    public void setBorrowObjective(String borrowObjective) 
    {
        this.borrowObjective = borrowObjective;
    }

    public String getBorrowObjective() 
    {
        return borrowObjective;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setApplyDoctor(String applyDoctor) 
    {
        this.applyDoctor = applyDoctor;
    }

    public String getApplyDoctor() 
    {
        return applyDoctor;
    }
    public void setClassType(String classType) 
    {
        this.classType = classType;
    }

    public String getClassType() 
    {
        return classType;
    }
    public void setCardNumber(String cardNumber) 
    {
        this.cardNumber = cardNumber;
    }

    public String getCardNumber() 
    {
        return cardNumber;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("approvalStatus", getApprovalStatus())
            .append("approvalBy", getApprovalBy())
            .append("approvalTime", getApprovalTime())
            .append("borrowEndTime", getBorrowEndTime())
            .append("borrowStartTime", getBorrowStartTime())
            .append("borrowObjective", getBorrowObjective())
            .append("applyTime", getApplyTime())
            .append("applyDoctor", getApplyDoctor())
            .append("classType", getClassType())
            .append("cardNumber", getCardNumber())
            .append("id", getId())
            .toString();
    }

    public Long getClassMainId() {
        return classMainId;
    }

    public void setClassMainId(Long classMainId) {
        this.classMainId = classMainId;
    }

    public String getApplyDoctorName() {
        return applyDoctorName;
    }

    public void setApplyDoctorName(String applyDoctorName) {
        this.applyDoctorName = applyDoctorName;
    }

    public String getRefuse() {
        return refuse;
    }

    public void setRefuse(String refuse) {
        this.refuse = refuse;
    }
}
